﻿using FastCore.Test.ORM;
using FastIOC.Attribute;
using FastORM.Applicaiton;
using FastORM.Enum;
using FastUtil.Config;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Text;

namespace FastExecutorCore.Test.IOC
{
    [TestClass]
    public class UserOperate
    {
      

        [Transitional]
        [TestMethod]
        public virtual void InsertUser()
        {
            CommonDao dao = new CommonDao(DataBaseClass.MySql, AppConfigUtil.Configuration["ConnectionStrings:Base_ConnectionString"]);
            Frame_User user = new Frame_User();
            user.UserGuid = "DAOYanpengxxx";
            user.DisplayName = "DaoYP1994";
            dao.Insert(user);
            throw new Exception("1111");

        }

        [Transitional(AutoRollBack = false)]
        [TestMethod]
        public virtual void InsertUser2()
        {
            CommonDao dao = new CommonDao(DataBaseClass.MySql, AppConfigUtil.Configuration["ConnectionStrings:Base_ConnectionString"]);
            Frame_User user = new Frame_User();
            user.UserGuid = "DAOYanpengxxx";
            user.DisplayName = "DaoYP1994";
            dao.Insert(user);
            throw new Exception("1111");
        }
    }
}
